const HomeService = require('../service/home')

class HomeController {
  async login(ctx) {
    let data = await HomeService.login(ctx)
    ctx.body = data;
  }
  async register(ctx) {
    let data = await HomeService.register(ctx)
    ctx.body = data;
  }
}

module.exports = new HomeController